import request from '@/utils/request'

// 查询采购发票列表
export function listSysYongyouCgfp(query) {
  return request({
    url: '/system/yycgfp/list',
    method: 'get',
    params: query
  })
}

// 查询采购发票详细
export function getSysYongyouCgfp(vouchdate) {
  return request({
    url: '/system/yycgfp/' + vouchdate,
    method: 'get'
  })
}

// 新增采购发票
export function addSysYongyouCgfp(data) {
  return request({
    url: '/system/yycgfp',
    method: 'post',
    data: data
  })
}

// 修改采购发票
export function updateSysYongyouCgfp(data) {
  return request({
    url: '/system/yycgfp',
    method: 'put',
    data: data
  })
}

// 删除采购发票
export function delSysYongyouCgfp(vouchdate) {
  return request({
    url: '/system/yycgfp/' + vouchdate,
    method: 'delete'
  })
}
